
body
{
    background: #333;
}

#wrap
{
  width: 720px;
  padding-left: 30px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
  background: #fff;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
}

#header
{
  text-align: center;
  padding-top: 20px;
}

.logo
{
  background-image: url(images/logo.png);
  background-repeat: no-repeat;
  background-position: center;
  height: 84px;
  width: inherit;
  margin-bottom: -10px;
}

#playingTable, #rPlayingTable
{
  width: 550px;
  float: left;
}

#playerTable .gameGrid, #rPlayerTable .gameGrid
{
  background-image: url(images/sea.png);
 }
 
 #opponentTable .gameGrid, #rOpponentTable .gameGrid
 {
   background-image: url(images/sea_dark.png);
 }
 
.opponent
 {
     background: white;
     opacity: 0.7;
 }
 
 .shootable:hover
 {
     opacity:0;
 }
 
.shooted
 {
     opacity: 0;
 }
 
 .hit
 {   
 		 background: none;
 		 background-image: url(images/explosion.png) repeat:none;
     opacity: 1;
 }
 
 .replayShip{
background: #ff920a; /* Old browsers */
background: -moz-linear-gradient(-45deg,  #ff920a 0%, #ffc277 59%, #ffffff 99%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, right bottom, color-stop(0%,#ff920a), color-stop(59%,#ffc277), color-stop(99%,#ffffff)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(-45deg,  #ff920a 0%,#ffc277 59%,#ffffff 99%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(-45deg,  #ff920a 0%,#ffc277 59%,#ffffff 99%); /* Opera 11.10+ */
background: -ms-linear-gradient(-45deg,  #ff920a 0%,#ffc277 59%,#ffffff 99%); /* IE10+ */
background: linear-gradient(-45deg,  #ff920a 0%,#ffc277 59%,#ffffff 99%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff920a', endColorstr='#ffffff',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */

 }
 
.shootedd {
 	background: red;
  opacity: 0.5;
 }
 

.board, #optionsPane, #playingTable, #rOptionsPane, #rPlayingTable {
	display:inline-block;
}

.gameGrid {
	border-collapse:collapse;
	box-shadow: 10px 10px 20px #ccc;
}

.gameGrid td {
	border: 1px solid white;
	width: 20px;
	height: 20px;
}

.gameGrid th
{
  background-color: White;
  font-family:Verdana;
  font-size: smaller;
  border-collapse:collapse;
  border: 1px solid white;
}
#opponentTable, #rOpponentTable
{
  margin-right: 40px;
  background-image: url(images/sea.png);
}

#rightPane, #rRightPane
{
  width: 140px;
  float: left;
  margin-top: 20px;
  margin-left: 20px;

 
}

.ships1
{
  height: 110px;
  width: 140px;
}

.ships2
{
  height: 90px;
  width: 140px;
}

.s
{
  display:inline-block;
}

.r1Ship, .r2Ship
{
  margin-bottom: 7px;
}

.c1
{
  width: 80px;
  height: inherit;
  text-align: center;
  margin-right: 3px;
}

.c2
{
  width: 40px;
  height: inherit;
  text-align: center;
}

#middlePart, #replay
{
  height: 225px;
  display: none;
}

#lobby{
	min-height: 225px;
	display:none;
}

#lobbyButton{
	display: none;
}

#gameFooter
{
  margin-top: 50px;
  height: 40px;
}

.error
{
	width: inherit;
	height: 40px;
  text-align: center;
  font-size: larger;
  font-family: "verdana";
	color: red;
	display: none;
}

a
{
  text-decoration:none
}
 
.button-container{
    position: relative; /*Important, Keeps the CSS3 Shapes in place*/
    display: inline-block;
    padding-bottom: 20px;
    height: 45px;
}

.button-container a{
    margin-left: 2px;
}
 
.button, .buttonSmall{
    float: left;
    padding: 10px;
    background-color: #ddd;

 
    -moz-border-radius:10px;
    -webkit-border-radius:10px;
    border-radius:10px;
 
    -moz-box-shadow:0 2px 0 #4c9434;
    -webkit-box-shadow:0 2px 0 #4c9434;
    box-shadow:0 2px 0 #4c9434;
 
    background-image: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0, #60B842),
        color-stop(0.85, #7FD13D)
    );
    background-image: -moz-linear-gradient(
        center bottom,
        #60B842 0%,
        #7FD13D 85%
    );
 
    color:#fff;
    font-family:arial,helvetica,sans-serif;
    font-size:17px;
    font-weight:bold;
    text-shadow:1px 1px 1px #4c9434;
}

.buttonSmall 
{
  padding: 5px;
  font-size: 12px;
  float: none;
}
 
.button:hover, .buttonSmall:hover{
    background-image: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0, #6DD14B),
        color-stop(0.85, #85DB40)
    );
    background-image: -moz-linear-gradient(
        center bottom,
        #6DD14B 0%,
        #85DB40 85%
    );
    box-shadow:0 2px 0 #5EA839;
}
 
.button:active, .buttonSmall:active{
    background-image: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0, #6DD14B),
        color-stop(0.85, #85DB40)
    );
    background-image: -moz-linear-gradient(
        center bottom,
        #6DD14B 0%,
        #85DB40 85%
    );
    box-shadow:0 1px 0 #5EA839;
    margin-top: 1px;
}

#instructions
{
  display: none;
}

#highScore
{
  display: none;
}

.r1Ship 
{
  height: 100px;
  width: inherit;
  position:relative;
}


.r2Ship 
{
  height: 80px;
  width: inherit;
  position:relative;
}


#ship1
{
  margin-top: 30px;
}

#ship2
{
  margin-top: 10px;
}

.bs{
  display: none;
  position:absolute;
  left: 30px;
  top: 0px;
  right: 0px;
}


#rightPane img 
{
  z-index: 100;
}

.laev1
{
    left: 15px;
    top: 30px;
}
.laev2 
{
    left: 15px;
    top: 10px;
}

#opponentTable td .shooted{
	opacity: 0.0;
}


.explosion{
	z-index: 1000;
	position: relative;
	display: none;
}

 .wrecked{
 	z-index: 1001;
	position: relative;
	display: none;
 }
 
.lobby-table
{
  width: 100%;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  text-shadow: 0 1px 0 #fff;
  color: #2a2a2a;
  background: #fafafa;
  background-image: -moz-linear-gradient(top, #fff, #eaeaea, #fff); /* Firefox 3.6 */
  background-image: -webkit-gradient(linear,center bottom,center top,from(#fff),color-stop(0.5, #eaeaea),to(#fff));
}

.lobby-table td
{
  height: 50px;
  line-height: 50px;
  padding: 0 20px;
  border-bottom: 1px solid #cdcdcd;
  box-shadow: 0 1px 0 white;
  -moz-box-shadow: 0 1px 0 white;
  -webkit-box-shadow: 0 1px 0 white;
  white-space: nowrap;
  text-align: center;
}

/*Body*/
.lobby-table tbody td
{
  text-align: center;
  font: normal 12px Verdana, Arial, Helvetica;
  width: 150px;
}

.lobby-table tbody td:first-child
{
  width: auto;
  text-align: left;
}

.lobby-table td:nth-child(2), .lobby-table td:nth-child(3)
{
  background: #efefef;
  background: rgba(144,144,144,0.15);
  border-right: 1px solid white;
}

.lobby-table td:nth-child(4)
{
  background: #e7f3d4;
  background: rgba(184,243,85,0.3);
}

/*Header*/
.lobby-table thead td
{
  font: bold 1.3em 'trebuchet MS', 'Lucida Sans', Arial;
  -moz-border-radius-topright: 10px;
  -moz-border-radius-topleft: 10px;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
  border-top: 1px solid #eaeaea;
}

.lobby-table thead td:first-child
{
  border-top: none;
}

/*Footer*/
.lobby-table tfoot td
{
  font: bold 1.4em Georgia;
  -moz-border-radius-bottomright: 10px;
  -moz-border-radius-bottomleft: 10px;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
  border-bottom: 1px solid #dadada;
}

.lobby-table tfoot td:first-child
{
  border-bottom: none;
}

input {
    outline:none;
    transition: all 0.25s ease-in-out;
    -webkit-transition: all 0.25s ease-in-out;
    -moz-transition: all 0.25s ease-in-out;
}
input:focus {
    box-shadow: 0 0 5px rgba(0, 0, 255, 1);
    -webkit-box-shadow: 0 0 5px rgba(0, 0, 255, 1); 
    -moz-box-shadow: 0 0 5px rgba(0, 0, 255, 1); 
}

input {
	height: 30px;
	font-size: large;
	margin-top: 20px;
    outline:none;
    transition: all 0.25s ease-in-out;
    -webkit-transition: all 0.25s ease-in-out;
    -moz-transition: all 0.25s ease-in-out;
    border-radius:3px;
    -webkit-border-radius:3px;
    -moz-border-radius:3px;
    border:1px solid rgba(0,0,0, 0.2);
}

input:focus {
    box-shadow: 0 0 5px rgba(0, 0, 255, 1);
    -webkit-box-shadow: 0 0 5px rgba(0, 0, 255, 1); 
    -moz-box-shadow: 0 0 5px rgba(0, 0, 255, 1);
    border:1px solid rgba(0,0,255, 0.8); 
}

#login{
	text-align: center;
	font-family: verdana;
	font-size: large;
}

#small{
	font-size: xx-small;
}


.lb{
	padding: 6px 10px 3px 10px;
}

#loginButton{
	display:none;
}


#button-container2{
	padding-top: 20px;
}

.Score-table
{
  width: 100%;
  margin: 0 auto;
  border-spacing: 0;
  color: white;
  background: #370;
  text-align: center;
  height: 20px;
}



.Score-table-second
{
  background: #559900;
  background-image: -moz-linear-gradient(top, #5a0, #5b0, #370); /* Firefox 3.6 */
  background-image: -webkit-gradient(linear,center bottom,center top,from(#370),color-stop(0.5, #5b0),to(#5a0));
}

.scoreButton{
    float: none;
    padding: 0px 10px;
}

#replayListTable{
	width: 100%;
	border-collapse:collapse;
	text-align: center;
	overflow: scroll;
	font-family: arial,helvetica,sans-serif;
	font-size: smaller;
}

#replayListTable tr{
	cursor: pointer;
}

#replayListTable tr:HOVER{
	background-color: #DCDCDC;
}

#rRightPane{
	margin-top: 0px;
}

#fbimage{
	margin-top: 10px;
}